package cn.cy.structure.decorator.general;

/**
 * @author yangxq
 * @desc CoffeeShop
 * @date 2025-05-12
 */
public class GeneralClient {

    public static void main(String[] args) {
        Coffee myCoffee = new MilkCoffee();
        System.out.println(myCoffee.getDescription() + " costs: " + myCoffee.cost());

        myCoffee = new SugarCoffee();
        System.out.println(myCoffee.getDescription() + " costs: " + myCoffee.cost());
    }

}
